<!DOCTYPE html>
<html>
<head>
<title>评分组件</title>
</head>
<body>
	<div id="app">
		<h1>测试发送消息</h1>
		<input type="text" v-model="msg"> <br />
		<br />
		<button type="button" @click="send('sendTest1')">sendTest1</button>
		<br />
		<button type="button" @click="send('sendTestJson')">sendTestJson</button>
		<br />
		<br />
		<button type="button" @click="send('sendToFanout')">sendToFanout</button>
		<br />
		<br />
		<button type="button" @click="send('sendToDirect','sms')">sendToDirect  sms</button>&nbsp;&nbsp;
		<button type="button" @click="send('sendToDirect','mail')">sendToDirect  mail</button>
		<br />
		<br />
		<button type="button" @click="send('sendToTopic','sms.138123456789')">sendToTopic  sms.*</button>&nbsp;&nbsp;
		<button type="button" @click="send('sendToTopic','mail.grop1.xuejianxinokok')">sendToTopic  mail.#</button>
		<br />
	    <br />
		<button type="button" @click="send('sendToDelay10Queue')">sendToDelay10Queue  延时消息和死信队列</button>
	</div>


	<script src="http.js"></script>
	<script src="vue.global.prod.js"></script>
	<script type="text/javascript">
        Vue.createApp({
           data(){
                 return { 
                     msg:'消息'
                 }
           },
           mounted:function(){
           },
           methods:{
            
               send(url,key) {
                   $http.post(`index/${url}`,{msg:this.msg,key:key}).then(res=>{
                       //if(res.success){
                       //    alert(res.message);
                       //}
                       console.log(res);
                   })
               }
           }
        }).mount('#app');
        
    </script>
</body>
</html>
